{extend name="index/iframe" /}

{block name="content"}
<div style="padding: 0 10px;">
<table style="margin-top:0px;" id="tableBox" lay-filter="tableBox"></table>
</div>
{/block}

{block name="css"}{/block}

{block name="js"}
<script>
    layui.use(['form', 'table'], function(){
        var $ = layui.$
            ,table = layui.table
            ,load = layer.load();

        //表格初始化
        table.render({
            elem: '#tableBox'
            ,height: '600'
            ,url: '{:url("UserList/game")}'
            ,page: true
            ,where: {my_user_id: {$Think.get.my_user_id}}
            ,limit: 20
            ,limits: [20,40,80]
            ,loading: true
            ,id: 'tableId'
            ,done: function (res, curr, count) {
                layer.close(load);
            }
            ,cols: [[
                {field:'my_user_id', title: '用户ID', width: 100}
                ,{field:'my_user_name', title: '充值账号', width: 120}
                ,{field:'channel_id', title: '渠道类型', width: 90}
                ,{field:'cps_id', title: '渠道ID', width: 100}
                ,{field:'cps_name', title: '绑定渠道', width: 140}
                ,{field:'game_id', title: '游戏ID', width: 100}
                ,{field:'game_name', title: '绑定游戏', width: 140}
                ,{field:'bond_time', title: '绑定时间', width: 150}
            ]]
        });
    });
</script>
{/block}